package com.joker.yuwu;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;

@WebServlet("/showzwxinxi")
public class ShowZwxinxi extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        super.doGet(req, resp);
        req.setCharacterEncoding("utf-8");
        String name=req.getParameter("name");
        String xinxi=req.getParameter("xinxi");
        String zhuangtai=req.getParameter("zhuangtai");
        ArrayList list=new ArrayList();
        list.add(name);
        list.add(xinxi);
        list.add(zhuangtai);
        req.setAttribute("list",list);
        req.getRequestDispatcher("showZWXinxi.jsp").forward(req,resp);

    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        super.doPost(req, resp);
    }
}
